//
//  ChooseTableView.m
//  ErWa
//
//  Created by 李雪 on 16/3/11.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ChooseTableView.h"

#import "NewNestHeader.h"

@implementation ChooseTableView

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        NSLog(@"%s",__FUNCTION__);
        
        self.weather = [[UIView alloc]initWithFrame:CGRectMake(20, 0, SVIIE_W, SVIEW_H - 517)];
        [self.contentView addSubview:self.weather];
        self.sss = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, self.weather.width, 30)];
        _sss.text = @"今日天气->^0^";
        _sss.textAlignment = NSTextAlignmentLeft;
        _sss.textColor = [UIColor cyanColor];
        [self.weather addSubview:_sss];
        
        
        self.moreLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.weather.frame.origin.x + 200, self.sss.frame.origin.y, self.sss.frame.size.width / 2, self.sss.frame.size.height)];
        self.moreLabel.text = @"全部->^0^";
        _moreLabel.textAlignment = NSTextAlignmentCenter;
        _moreLabel.textColor = [UIColor cyanColor];
        [self.weather addSubview:_moreLabel];
        
        // backGround
        self.backGroundView=[[UIView alloc] initWithFrame:CGRectMake(0, 30, self.contentView.frame.size.width + 15 , 120)];
        _backGroundView.layer.backgroundColor = [UIColor cyanColor].CGColor;
        _backGroundView.layer.borderColor = [UIColor colorWithRed:255/255. green:228/255. blue:225/255. alpha:.8].CGColor;
        _backGroundView.layer.borderWidth = 10;
        _backGroundView.layer.cornerRadius = 5;
        _backGroundView.clipsToBounds = YES;
        self.backGroundView.userInteractionEnabled=YES;
        [self.weather addSubview:self.backGroundView];
        
        // one
        self.bigLeftLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 50, 110, 80)];
        _bigLeftLabel.backgroundColor = [UIColor redColor];
        _bigLeftLabel.font = [UIFont systemFontOfSize:22.];
        _bigLeftLabel.textAlignment = NSTextAlignmentCenter;
        _bigLeftLabel.textColor = [UIColor redColor];
        [self.weather addSubview:self.bigLeftLabel];
        
        // two
        self.topRightLabel = [[UILabel alloc]initWithFrame:CGRectMake(150, 60, 160, 21)];
        _topRightLabel.backgroundColor = [UIColor purpleColor];
        _topRightLabel.font = [UIFont systemFontOfSize:17.];
        _topRightLabel.textAlignment = NSTextAlignmentCenter;
        _topRightLabel.textColor = [UIColor redColor];
        [self.weather addSubview:self.topRightLabel];
        
        // three
        self.downRightLabel = [[UILabel alloc]initWithFrame:CGRectMake(150, self.topRightLabel.frame.origin.y + 40, 160, 21)];
        _downRightLabel.backgroundColor = [UIColor yellowColor];
        _downRightLabel.font = [UIFont systemFontOfSize:17.];
        _downRightLabel.textAlignment = NSTextAlignmentCenter;
        _downRightLabel.textColor = [UIColor blueColor];
        [self.weather addSubview:self.downRightLabel];


        
        
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}












@end
